import { PREFIX, TOKEN_KEY } from '@/enums/storageEnums'

export function getToken() {
    return useCookie(PREFIX + TOKEN_KEY).value || '';
}

export function setToken(token:string) {
    useCookie(PREFIX + TOKEN_KEY).value = token;
}

export function removeToken() {
    useCookie(PREFIX + TOKEN_KEY).value = null;
}